#!/usr/bin/expect -f

set timeout -1 

#login
spawn ssh qiang@192.168.131.121
expect "*?assword:*"
send "qiang123\r"
expect "*]*"


send "cd /public/home/users/qiang/rosetta3/\r"
expect "*]*"
send "./cmd.sh $argv.fasta $argv 15 1\r"
#expect "*]*"
#send "\r"
expect "*]*"
send "exit\r"

expect eof
